﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Web.Mvc;
using System.Web.Security;

namespace Login.Models
{
    /// <summary>
    /// The StudentModel is used to contain a list of entries
    /// that are shown in the student list for SLB'ers.
    /// </summary>
    public class StudentModel
    {
        /// <summary>
        /// The list of StudentEntry objects
        /// </summary>
        public List<StudentEntry> Entries { get; set; }
    }

    /// <summary>
    /// A StudentEntry models a student row in the form used
    /// by SLB'ers to manage their permission.
    /// </summary>
    public class StudentEntry
    {
        /// <summary>
        /// The name of the student.
        /// </summary>
        [Display(Name="Naam")]
        public string Name { get; set; }

        /// <summary>
        /// The number of the student.
        /// </summary>
        [Display(Name = "Nummer")]
        public string Number { get; set; }

        /// <summary>
        /// The number of study points received in total.
        /// </summary>
        [Display(Name = "Punten")]
        public int Points { get; set; }

        /// <summary>
        /// Whether or not OSIRIS gave permission for a
        /// final internship.
        /// </summary>
        [Display(Name = "Toestemming OSIRIS")]
        public bool HasPermissionOSIRIS { get; set; }

        /// <summary>
        /// Whether or not the SLB'er gave permission for a
        /// final internship.
        /// </summary>
        [Display(Name = "Toestemming SLB")]
        public bool HasPermissionSLB { get; set; }
    }
}